/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session.stateless.MRP.ProductionPlan;

import entity.MRP.ProductionPlan.PlannedMonthlyDemand;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author zhozho
 */
@Local
public interface MonthlyProductionPlanBeanLocal {
    public PlannedMonthlyDemand createPlannedMonthlyDemand(String month, Long productionPlan, Long inventoryA, Long inventoryB, Long inventoryC, Long inventoryD, Double breakDownA, Double breakDownB, Double breakDownC, Double breakDownD);
  
    public void updatePlannedMonthlyDemand(Long id, Long productionPlan, Long inventoryA, Long inventoryB, Long inventoryC, Long inventoryD, Double breakDownA, Double breakDownB, Double breakDownC, Double breakDownD);
    
    public boolean checkUtilization (Long productionPlan, Long capacity);
    
    public Long calculateInventory(Long salesForecast, Long productionPlan, Long previousInventory);
    
    public List<PlannedMonthlyDemand> getPlannedMonthlyDemands();
    
    public PlannedMonthlyDemand findByMonth(String monthName); 
    
    public Long getWorkingDaysByMonth(String time);
    
    public List<String> createMonthList();
}
